/**
 * Collaborative Story Development Web Application (CSDApp) 
 * Copyright Anton Strack 2014
 *
 * This file is part of Collaborative Story Development Application (CSDApp).
 *
 * CSDApp is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or any later version.
 *
 * CSDApp is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * CSDApp. If not, see <http://www.gnu.org/licenses/>.
 *
 */
package csdwa;

/**
 * This class is special type of action for creating tasks. It however, isn't a
 * subtype of Action but a new type that has a variable that will generally
 * reference the id of Action. This class provides Additional descriptive
 * capabilities for the end user and the representation of combination actions
 * that don't warrant an individual access control by virtue of being a separate
 * action.
 *
 * @author Anton Strack
 */
public class TaskAction {

    /**
     * The unique id of the task action from the taskaction table.
     */
    protected int id;
    /**
     * The actionTypeId that references the id of the Action class that is used
     * in the authorization system.
     */
    protected int actionTypeId;
    /**
     * the resource type id that the action is preformed on. This is primarily
     * for add and remove task actions.
     */
    protected int resourceTypeId;
    /*
     * A description intended to be seen by the end user to help describe what the action is.
     */
    protected String description;
    /*
     * The name of the action that will be visible to the end user. This provides the opportunity to user more userfriendly names for the actions and to add new actions.
     */
    protected String name;

    public TaskAction() {
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the actionTypeId
     */
    public int getActionTypeId() {
        return actionTypeId;
    }

    /**
     * @param actionTypeId the actionTypeId to set
     */
    public void setActionTypeId(int actionTypeId) {
        this.actionTypeId = actionTypeId;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the resourceTypeId
     */
    public int getResourceTypeId() {
        return resourceTypeId;
    }

    /**
     * @param resourceTypeId the resourceTypeId to set
     */
    public void setResourceTypeId(int resourceTypeId) {
        this.resourceTypeId = resourceTypeId;
    }
}
